import { request } from "@/request";

// 1. 请求商品详情信息
export const reqGoodInfo = (skuId) => {
  return request.get(`/api/item/${skuId}`);
};
//封装加入购物车请求

export const reqAddCart = (skuId, skuNum) => {
  return request.post(`/api/cart/addToCart/${skuId}/${skuNum}`);
};
